package com.qst.express.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qst.express.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qst.express.entity.vo.UserVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mjh
 * @since 2022-09-25
 */
public interface UserService extends IService<User> {

    IPage<User> pageTeacherCondition(Page<User> userPage, UserVo userVo);

    boolean isFindByPhone(String userPhone);

    boolean insert2(String userPhone);

    void updateLoginTime(String userPhone);

    User findUserByPhone(String userPhone);

    boolean isIdentification(String phone);

    boolean updateUser(User u);

    User getImg(String userphone);

    boolean updateUserName(String userPhone, String userName);

    List<Map<String, Integer>> console();
}
